<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class Order extends TimeModel
{

    protected $name = "order";

    protected $deleteTime = false;

    public function users()
    {
        return $this->belongsTo('User', 'user_id', 'id');
    }

    public function goods()
    {
        return $this->belongsTo('Goods', 'goods_id', 'good_id');
    }

}